$(function () {
    let markId = getUrlString('markid');
    let id = getUrlString('id');
    let cateType = getUrlString('cateType');
    function getDetail () {
        let data = {
            'markid':markId,
            'cateID':id,
            'cateType':cateType
        };
        getData('post','/niu/apiv4/niu_makesworks_detail.php',data,function (data) {
            console.log(data);
            $('#logo').attr('src',data.cateinfo.logo);
            $('#name').html(data.cateinfo.name);
            $('#remarks').html(data.cateinfo.remarks);
            let append = '';
            $(data.cateinfo.toylist).each(function () {
                append += '<img src="'+this.pics+'" alt="">'
            });

            $('#imgList').append(append)
        })
    }
    getDetail()
});